﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.OleDb;
using GBG_DBM.Support.DAL.Entities;
namespace GBG_DBM.Support.DAL.DB
{
    public class FreightDB
    {
        private DAO _DAO = new DAO();
        public DataTable getFreights() 
        {
            OleDbCommand OleDb = new OleDbCommand("Select * from Freight");
            return _DAO.GetDataTable(OleDb);
        }
		public DataTable getFreight(string Freight) 
		{
			OleDbCommand OleDb = new OleDbCommand("Select Freight_Type,Estimated_Cost from Freight where Freight_Type='" + Freight + "'");
			return _DAO.GetDataTable(OleDb);
		}
    }
}
